package com.example.foo.member.model;

import java.math.BigDecimal;

/**
 * 提现单
 */
@com.baomidou.mybatisplus.annotation.TableName("withdraw")
public class Withdraw extends com.example.core.model.BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 状态
	 */
	public enum State {
		pending("等待"),
		success("成功"),
		failure("失败"),
		finish("完成")
		;
		public final String text;
		State(String text) {
			this.text = text;
		}
	}

	private Withdraw.State state;

	private String withdrawNo;

	private String bankName;

	private String bankBranchName;

	private String cardHolder;

	private String cardNumber;

	private BigDecimal money;

	private BigDecimal serviceFee;

	private String memo;

	private String outerOrderNo;

	private Long userId;

	public Withdraw() {
	}

	/**
	 * @return 状态
	 */
	public Withdraw.State getState() {
		return state;
	}

	/**
	 * @param state 状态
	 */
	public void setState(Withdraw.State state) {
		this.state = state;
	}

	/**
	 * @return 提现单号
	 */
	public String getWithdrawNo() {
		return withdrawNo;
	}

	/**
	 * @param withdrawNo 提现单号
	 */
	public void setWithdrawNo(String withdrawNo) {
		this.withdrawNo = withdrawNo;
	}

	/**
	 * @return 银行名称
	 */
	public String getBankName() {
		return bankName;
	}

	/**
	 * @param bankName 银行名称
	 */
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	/**
	 * @return 支行名称
	 */
	public String getBankBranchName() {
		return bankBranchName;
	}

	/**
	 * @param bankBranchName 支行名称
	 */
	public void setBankBranchName(String bankBranchName) {
		this.bankBranchName = bankBranchName;
	}

	/**
	 * @return 持卡人
	 */
	public String getCardHolder() {
		return cardHolder;
	}

	/**
	 * @param cardHolder 持卡人
	 */
	public void setCardHolder(String cardHolder) {
		this.cardHolder = cardHolder;
	}

	/**
	 * @return 卡号
	 */
	public String getCardNumber() {
		return cardNumber;
	}

	/**
	 * @param cardNumber 卡号
	 */
	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	/**
	 * @return 金额
	 */
	public BigDecimal getMoney() {
		return money;
	}

	/**
	 * @param money 金额
	 */
	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	/**
	 * @return 手续费
	 */
	public BigDecimal getServiceFee() {
		return serviceFee;
	}

	/**
	 * @param serviceFee 手续费
	 */
	public void setServiceFee(BigDecimal serviceFee) {
		this.serviceFee = serviceFee;
	}

	/**
	 * @return 备注
	 */
	public String getMemo() {
		return memo;
	}

	/**
	 * @param memo 备注
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}

	/**
	 * @return 外部订单号
	 */
	public String getOuterOrderNo() {
		return outerOrderNo;
	}

	/**
	 * @param outerOrderNo 外部订单号
	 */
	public void setOuterOrderNo(String outerOrderNo) {
		this.outerOrderNo = outerOrderNo;
	}

	/**
	 * @return userId
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * @param userId userId
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

}
